import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/index'
import school from './modules/school'
import test from './modules/test'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    children: []
  }
]
routes.push.apply(routes, school)
routes.push.apply(routes, test)
const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
